﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Component
{
    [Serializable]
    public class Line
    {
        Point start;
        Point end;
        Color color;
        int size;

        public Line(Point start, Point end)
        {
            this.start = start;
            this.end = end;
            this.color = Color.Transparent;
            this.size = 1;
        }

        public Line(Point start, Point end, Color color) : this(start, end)
        {
            this.color = color;
        }

        public Line(Point start, Point end, Color color, int size) : this(start, end, color)
        {
            this.size = size;
        }

        public Point Start { get => start; set => start = value; }
        public Point End { get => end; set => end = value; }
        public Color Color { get => color; set => color = value; }
        public int Size1 { get => size; set => size = value; }
    }
}
